<%-- 
    Document   : product_cart
    Created on : Mar 13, 2013, 5:07:09 AM
    Author     : duonghung1369
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib tagdir="/WEB-INF/tags/common/" prefix="common" %>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE HTML >

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Order Cart</title>
        <link rel="stylesheet" type="text/css" href="../resource/css/order_cart.css" >
        <link rel="stylesheet" type="text/css" href="../resource/css/style.css" >
        <link rel="stylesheet" type="text/css" href="../resource/css/admin_style.css" >
    </head>
    <body>
        <div class="antiqueshop-container">
            <div class="container">
                <div id="header">
                    <common:header />
                    <common:login_logout />
                </div>
                <div id="navigation">

                </div>
                <div id="column-left">
                    <common:category />
                </div>
                <div id="content">
                    <div class="boxa round first grid" style="margin: 0;">
                        <h1 style="color: blue">Ordered history</h1>
                        <table class="data display datatable" id="order-table">
                            <thead>
                                <tr>
                                    <td class="sorting_disable" >No.</td>
                                    <td class="sorting_disable" >Confirmation Number</td>
                                    <td class="sorting_disable" >Placed Date</td>
                                    <td class="sorting_disable" >Delivery Date</td>
                                    <td class="sorting_disable" >Order Amount ($)</td>
                                    <td class="sorting_disable" >Status</td>
                                </tr>
                            </thead>
                            <tbody>
                                <s:iterator value="orders" status="orderStatus" id="order">
                                    <tr class="odd" onclick="window.location = '../order/history_detail.html?orderId=<s:property value="id" />'" id="order-history-row-<s:property value="id"/>" >
                                        <td><s:property value="#orderStatus.count" /></td>
                                        <td><s:property value="confirmationString"/></td>
                                        <td><fmt:formatDate pattern="MM-dd-yyyy" value="${placedDatetime}"/></td>
                                        <td><fmt:formatDate pattern="MM-dd-yyyy" value="${deliveredDatetime}"/></td>
                                        <td><s:property value="subAmount" /></td>
                                        <td><s:property value="orderStatus.description" /></td>
<!--                                        <td><a href="../order/history_detail.html?orderId=<s:property value="id" />" class="custom-button" onclick="event.preventBubble();">Detail</a> </td>-->
                                    </tr>
                                </s:iterator>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div id="footer">
                    <common:footer />
                </div>
            </div>
        </div>
    </body>
</html>
